package view;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.awt.*;

public  class MainFrame extends Application {
    public static Stage stage;
    @Override
    public void start(Stage primaryStage) throws Exception {
    Parent root = FXMLLoader.load(getClass().getResource("mainFrame.fxml"));
       primaryStage.setTitle("管家婆");
       primaryStage.setScene(new Scene(root, 575, 383));
       primaryStage.show();
       MainFrame.stage=primaryStage;

    }
    public static void main(String[] args) {
        launch(args);
    }
}
